package edu.jd.software.web.backend.service;


import edu.jd.software.web.backend.mbg.model.PmsBrand;

import java.util.List;


public interface PmsBrandService {
    List<PmsBrand> listAllBrand();

    int createBrand(PmsBrand brand);

    int updateBrand(Long id, PmsBrand brand);

    int deleteBrand(Long id);

    List<PmsBrand> listBrand(int pageNum, int pageSize);

    PmsBrand getBrand(Long id);

    /*根据品牌名字name删除品牌*/
    void deleteByName(String name);

    /*查询数量小于等于count的品牌*/
    List<PmsBrand> listCountLeq(Integer count);
}
